<script setup lang="ts">
import { MoreFilled } from '@element-plus/icons-vue'
</script>

<template>
  <div id="main">
    <div style="width: 100%; display: flex; justify-content: space-between; align-items: center">
      <h2>
        <slot name="title"></slot>
      </h2>
      <slot name="delete"></slot>
    </div>
    <div class="content-area">
      <slot name="content"></slot>
    </div>
    <slot name="image"></slot>
    <div class="info-area">
      <div class="identify-area">
        <div style="display: flex; align-items: center">
          <p>
            <slot name="publisher"></slot>
          </p>
          <slot name="identify"></slot>
        </div>
        <p>
          <slot name="createTime"></slot>
        </p>
      </div>
      <div class="watch-area">
        <el-divider direction="vertical" />
        <p>
          回复数：
          <slot name="reply"></slot>
        </p>
      </div>
    </div>
  </div>
</template>

<style scoped>
#main {
  margin: 20px;
  padding: 10px;
  //box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
  line-height: 2.5em;
  cursor: pointer;
  transition: all 0.3s;
  border-radius: 10px;
  background-color: white;
}

.info-area {
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.identify-area {
  display: flex;
  align-items: center;
  width: 250px;
  justify-content: space-between;
}

.watch-area {
  display: flex;
  width: 200px;
  justify-content: space-evenly;
  align-items: center;
}

p {
  font-size: 12px;
  font-weight: bold;
}

#main:hover {
  scale: 1.01;
}
</style>
